﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ProfileRelation.cs" company="DissingNellemann">
//   
// All rights reserved </copyright>
// <summary>
//   The profile relation.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Website.Models.Domain
{
    using Website.Models.Base;

    /// <summary>
    ///     The profile relation.
    /// </summary>
    public class ProfileRelation : Entity
    {
        #region Public Properties

        /// <summary>
        ///     Gets or sets the type.
        /// </summary>
        public string Type { get; set; }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        /// The convert.
        /// </summary>
        /// <param name="dto">
        /// The dto.
        /// </param>
        /// <returns>
        /// The <see cref="ProfileRelation"/>.
        /// </returns>
        public static ProfileRelation Convert(CRUDServices.ProfileRelation dto)
        {
            return new ProfileRelation { ID = dto.ID, Type = dto.Type };
        }

        #endregion
    }
}